package com.jzoom.zoom.pay.models;

import java.util.Map;

/**
 * 一个支付对象
 * @author jzoom
 *
 */
public class Pay extends CreatePay {

	/**
	 * id
	 */
	private String id;

	private boolean paid;
	
	private boolean refunded;
	
	private boolean reversed;
	
	/**
	 * 创建时间
	 */
	private Long createTime;
	
	/**
	 * 支付时间
	 */
	private Long payTime;
	

	
	/**
	 * 清算时间
	 */
	private Integer clearTime;
	
	/**
	 * 清算状态
	 */
	private String clearStatus;
	
	/**
	 * 时间(yyyyMMdd)
	 */
	private String date;
	
	/**
	 * 支付凭证
	 */
	private Map<String, Object> credential;
	
	/**
	 * 支付渠道给出的流水号
	 */
	private String transId;
	
	
	/**
	 * 其他支付参数
	 */
	private Map<String, Object> extra;


	/**
	 * 如果失败，那么有记录
	 */
	private String errCode;
	
	/**
	 * 如果失败，那么有记录
	 */
	private String errMsg;
	

	public Integer getClearTime() {
		return clearTime;
	}

	public void setClearTime(Integer clearTime) {
		this.clearTime = clearTime;
	}

	
	public String getDate() {
		return date;
	}

	public void setDate(String date) {
		this.date = date;
	}



	

	public String getTransId() {
		return transId;
	}

	public void setTransId(String transId) {
		this.transId = transId;
	}

	public Map<String, Object> getExtra() {
		return extra;
	}

	public void setExtra(Map<String, Object> extra) {
		this.extra = extra;
	}

	public boolean isReversed() {
		return reversed;
	}

	public void setReversed(boolean reversed) {
		this.reversed = reversed;
	}

	public boolean isRefunded() {
		return refunded;
	}

	public void setRefunded(boolean refunded) {
		this.refunded = refunded;
	}

	public boolean isPaid() {
		return paid;
	}

	public void setPaid(boolean paid) {
		this.paid = paid;
	}

	public Long getCreateTime() {
		return createTime;
	}

	public void setCreateTime(Long createTime) {
		this.createTime = createTime;
	}

	public Long getPayTime() {
		return payTime;
	}

	public void setPayTime(Long payTime) {
		this.payTime = payTime;
	}

	public String getId() {
		return id;
	}

	public void setId(String id) {
		this.id = id;
	}

	public String getErrCode() {
		return errCode;
	}

	public void setErrCode(String errCode) {
		this.errCode = errCode;
	}

	public String getErrMsg() {
		return errMsg;
	}

	public void setErrMsg(String errMsg) {
		this.errMsg = errMsg;
	}

	public Map<String, Object> getCredential() {
		return credential;
	}

	public void setCredential(Map<String, Object> credential) {
		this.credential = credential;
	}

	public String getClearStatus() {
		return clearStatus;
	}

	public void setClearStatus(String clearStatus) {
		this.clearStatus = clearStatus;
	}

	
	
	

}
